package com.ruiysoft.entity.order;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author WenJialu
 * @since 2018-11-10
 */
@TableName("order_sku_pic")
public class OrderSkuPic extends Model<OrderSkuPic> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    @TableField("order_no")
    private String orderNo;

    @TableField("sku_id")
    private Long skuId;

    private String path;

    private Integer sort;

    public Long getId() {
        return id;
    }

    public OrderSkuPic setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getOrderId() {
        return orderId;
    }

    public OrderSkuPic setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public OrderSkuPic setOrderNo(String orderNo) {
        this.orderNo = orderNo;
        return this;
    }
    public Long getSkuId() {
        return skuId;
    }

    public OrderSkuPic setSkuId(Long skuId) {
        this.skuId = skuId;
        return this;
    }
    public String getPath() {
        return path;
    }

    public OrderSkuPic setPath(String path) {
        this.path = path;
        return this;
    }
    public Integer getSort() {
        return sort;
    }

    public OrderSkuPic setSort(Integer sort) {
        this.sort = sort;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderSkuPic{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", orderNo=" + orderNo +
        ", skuId=" + skuId +
        ", path=" + path +
        ", sort=" + sort +
        "}";
    }
}
